import 'package:json_annotation/json_annotation.dart';

part 'bt_oss_policy.g.dart';

@JsonSerializable()
class BtOssPolicy {
  final String accessKeyId;
  final String callback;
  final String dir;
  final String expire;
  final String host;
  final String policy;
  final String signature;

  const BtOssPolicy({
    required this.accessKeyId,
    required this.callback,
    required this.dir,
    required this.expire,
    required this.host,
    required this.policy,
    required this.signature,
  });

  factory BtOssPolicy.fromJson(Map<String, dynamic> json) => _$BtOssPolicyFromJson(json);

  Map<String, dynamic> toJson() => _$BtOssPolicyToJson(this);
}
